﻿$("#exampleAccordion>li:nth-child(7) a").removeClass("collapsed");
$("#exampleAccordion>li:nth-child(7) ul").addClass("show");
$("#exampleAccordion>li:nth-child(7) ul>li:nth-child(3)").addClass("active");
function Modification() {
	if ($("#userName").val() == undefined || $("#userName").val() == "") {
		layer.msg("姓名不能为空");
		return false;
	}
	if ($("#BankNO").val() == undefined || $("#BankNO").val() == "") {
		layer.msg("卡号不能为空");
		return false;
	}
	if ($("#BankName").val() == undefined || $("#BankName").val() == "") {
		layer.msg("银行名称不能为空");
		return false;
	}
	var cardss = "";
	if (document.getElementById("Card")) {
		cardss = $("#Card").val();
	}

	var option = {
		url: "/Member/EditInfo",
		type: "post",
		data: { name: $("#userName").val(), card: $("#BankNO").val(), bname: $("#BankName").val(), cards: cardss },
		callback: SetModel
	}
	swGather.swAjax(option)
}

function SetModel(data) {
	layer.msg(data.Msg);
	setTimeout(function () {
		location.href = "/Member/Index";
	}, 1000)
}